From: kaf24@firebug.cl.cam.ac.uk Date: Fri, 14 Jul 2006 11:00:02 +0000 (+0100) Subject: [XM-TEST] Increase timeout on hotplug-cpus-down test to 30 seconds. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15836 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=553243f2ea27fb81d0f446a86bd381611ff41ddb;p=xen.git [XM-TEST] Increase timeout on hotplug-cpus-down test to 30 seconds. This is needed when dom0 has 32 CPUs. Signed-off-by: Susan Krysan --- diff --git a/tools/xm-test/tests/enforce_dom0_cpus/01_enforce_dom0_cpus_basic_pos.py b/tools/xm-test/tests/enforce_dom0_cpus/01_enforce_dom0_cpus_basic_pos.py index a29985afcb..86da935bea 100644 --- a/tools/xm-test/tests/enforce_dom0_cpus/01_enforce_dom0_cpus_basic_pos.py +++ b/tools/xm-test/tests/enforce_dom0_cpus/01_enforce_dom0_cpus_basic_pos.py @@ -73,9 +73,9 @@ if check_status and status != 0: # 5) check /proc/cpuinfo for cpu count -# It takes some time for the CPU count to change, on multi-proc systems, so check the number of procs in a loop for 20 seconds. +# It takes some time for the CPU count to change, on multi-proc systems, so check the number of procs in a loop for 30 seconds. #Sleep inside the loop for a second each time. -timeout = 20 +timeout = 30 starttime = time.time() while timeout + starttime > time.time(): # Check /proc/cpuinfo @@ -108,8 +108,8 @@ if num_online != enforce_dom0_cpus: reset_vcpu_count() # check restore worked -# Since this also takes time, we will do it in a loop with a 20 second timeout. -timeout=20 +# Since this also takes time, we will do it in a loop with a 30 second timeout. +timeout=30 starttime=time.time() while timeout + starttime > time.time(): num_online = int(getDomInfo("Domain-0", "VCPUs"))